package com.base.core.idworker;


/**
 * 随机数算法的工具类.
 *
 * @author biao
 * @version 2019-5-19
 */
public class VerifyCodeStrategy implements IdWorkerInterface {
    /**
     * 获取随机数
     */
    public long nextId() {
        String time = System.nanoTime() + "";
        return new Long(time.substring(time.length() - 6)).longValue();
    }


}
